// 登陆接口
import storage, { getStore } from "../storage/storage"
import {axios} from "../utils/axios";
import qs from "qs";

const loginUrl = {
    backLogin: "/login/backLogin",
}

// 后台登陆
export function backManageLogin(parameter){
     return axios({
         url: loginUrl.backLogin,
         method: 'post',
         data: parameter,
     })
}

// 获取图片验证码
export const getImageCodeApi =()=>{
    return axios({
        url: "/login/getImageCode",
        method: 'get',
    })
}

export const receptionLoginApi =(parameter)=>{
    return axios({
        url: "/login/receptionLogin",
        method: 'post',
        data: parameter,
    })
}

export const receptionRegister = (parameter) =>{
    return axios({
        url: "/login/receptionRegister",
        method: 'post',
        data: parameter,
    })
}

export const getLoginNameApi = (parameter) =>{
    return axios({
        url: "/login/getLoginName",
        method: 'get',
        params: parameter,
    })
}

// 查询注册输入的账号是否相同
export const checkAccountApi = (parameter) =>{
    return axios({
        url: "/login/checkAccountApi",
        method: 'get',
        params: parameter,
    })
}

